import { RouteRecordRaw } from 'vue-router';

const router: RouteRecordRaw[] = [
  {
    path: '/pc',
    name: 'pc',
    redirect: { name: 'pcLayout' },
    component: () => import('@/layouts/LayoutFirst.vue'),
    children: [
      {
        path: '/pc/',
        name: 'pcLayout',
        redirect: { name: 'pcLoop' },
        component: () => import('@/layouts/LayoutSecond.vue'),
        children: [
          { path: '/pc/loop', name: 'pcLoop', component: () => import('@/pages/pc/views/loop.vue') },
          { path: '/pc/news', name: 'pcNews', component: () => import('@/pages/pc/views/news.vue') },
          { path: '/pc/article-verify', name: 'pcArticleVerify', component: () => import('@/pages/pc/views/article-verify.vue') },
          { path: '/pc/article-edit', name: 'pcArticleEdit', component: () => import('@/pages/pc/views/article-edit.vue') },
          { path: '/pc/article-classify', name: 'pcArticleClassify', component: () => import('@/pages/pc/views/article-classify.vue') },
          { path: '/pc/test', name: 'pcTest', component: () => import('@/pages/pc/views/test.vue') },
          { path: '/pc/specialist', name: 'pcSpecialist', component: () => import('@/pages/pc/views/specialist.vue') },
          { path: '/pc/time-line', name: 'pcTimeLine', component: () => import('@/pages/pc/views/time-line.vue') },
          { path: '/pc/product', name: 'pcProduct', component: () => import('@/pages/pc/views/product.vue') },
          { path: '/pc/link', name: 'pcLink', component: () => import('@/pages/pc/views/link.vue') },
        ],
      },
    ],
  },
];

export default router;
